/*
 * mkfs.crypto.cpp
 *
 *  Created on: Mar 23, 2010
 *      Author: Lukasz Spintzyk
 */

// Utility which creates my filesystem.
#include "ph.h"
#include "CommandLineParsers.h"
#include "Filesystem.h"


int main(int argc, char* argv[])
{
    struct FilesystemMkfsArgs mkfs_args = parseMkfsArgs(argc, argv);

    if (mkfs_args.mount.exit)
    {
    	return 0;
    }


    std::cout << "Creating crypto filesystem "
            << (Filesystem::setUp(mkfs_args, true) ? "has succeded" : "failed")
            << std::endl;


    return 0;
}
